package com.kmxd.ams.client.archive.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 元数据对应
 *
 * @author nickbi
 * @since 2022-07-23
 */
@Data
@Schema(description = "元数据对应对象")
public class ArchiveMetaFieldMainVO implements Serializable {

  private static final long serialVersionUID = 1L;

  @Schema(description = "主键ID")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  @Schema(description = "门类配置id 关联s_archive_type表主键")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long archTypeId;

  @Schema(description = "源表table_id 源表table_id")
  private String sourceTableId;

  @Schema(description = "目标门类id")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long targetArchTypeId;

  @Schema(description = "目标表table_id 目标表table_id")
  private String targetTableId;

  @Schema(description = "*状态，1已经对应完毕。0未对应完毕")
  private Integer status;

  @Schema(description = "创建人")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long createBy;

  @Schema(description = "创建时间")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createTime;

  @Schema(description = "更新人")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long updateBy;

  @Schema(description = "更新时间")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date updateTime;

  @Schema(description = "删除，0正常，1删除")
  private Long delFlag;

  @Schema(description = "源门类名")
  private String archTypeName;

  @Schema(description = "目标门类名")
  private String targetArchTypeName;
}
